package io.adrainty.bolee.security.models.bo;

import com.baomidou.mybatisplus.annotation.TableName;
import io.adrainty.bolee.framework.commons.basic.BaseBO;
import io.adrainty.bolee.framework.commons.basic.EnableEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

/**
 * @author AdRainty
 * @version V1.0.0
 * @since 2025/8/9 下午11:34
 */

@Data
@Schema(description = "资源BO")
@EqualsAndHashCode(callSuper = true)
@TableName("tab_resource")
public class ResourceBO extends BaseBO {

    @Serial
    private static final long serialVersionUID = -3986722756543803809L;

    @Schema(description = "资源编号")
    private String resourceNo;

    @Schema(description = "父资源编号")
    private String parentResourceNo;

    @Schema(description = "资源名称")
    private String resourceName;

    @Schema(description = "资源类型")
    private String resourceType;

    @Schema(description = "请求路径")
    private String requestPath;

    @Schema(description = "资源标签")
    private String label;

    @Schema(description = "排序编号")
    private Integer sortNo;

    @Schema(description = "图标")
    private String icon;

    @Schema(description = "数据状态：0正常 1禁用")
    private EnableEnum dataState;

}
